<HTML><HEAD><TITLE>should_raise(+Goal,+Event,+TestName)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(test_util)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>should_raise(+Goal,+Event,+TestName)</H1>
Run the goal Goal and print a message if it doesn't raise Event.
<H3>Modules</H3>
This predicate is sensitive to its module context (tool predicate, see @/2).
<H2>Examples</H2>
<PRE>should_raise(number_string(hello,_),5,test_raises_5). % type error</PRE>
<H2>See Also</H2>
<A HREF="../../lib/test_util/should_give-2.html">should_give / 2</A>, <A HREF="../../lib/test_util/should_fail-1.html">should_fail / 1</A>, <A HREF="../../lib/test_util/should_throw-2.html">should_throw / 2</A>, <A HREF="../../lib/test_util/should_raise-2.html">should_raise / 2</A>, <A HREF="../../lib/test_util/should_give-3.html">should_give / 3</A>, <A HREF="../../lib/test_util/should_fail-2.html">should_fail / 2</A>, <A HREF="../../lib/test_util/should_throw-3.html">should_throw / 3</A>
</BODY></HTML>
